home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / os2tools / aping / aping.fam < prev    next >
Encoding:
Text File  |  1992-05-26  |  2.7 KB  |  74 lines

  1.  
  2. #
  3. #  You should have previously set LIB and INCLUDE environment variables
  4. #  referencing your C compiler and OS/2 Toolkit subdirectories.
  5. #  Consult your compiler documentation and OS/2 Toolkit documentation
  6. #  for instructions on defining these variables.  Your PATH environment
  7. #  variable should also reference the Toolkit directory where the BIND
  8. #  program is located.
  9. #
  10. #  If you did not specify that the default libraries as OS/2 when you
  11. #  installed the compiler, you will need to change llibce to llibcep
  12. #  in this makefile.
  13. #
  14. #  You must have both the OS/2 and DOS CPIC libraries to be able to
  15. #  build a family API executable.
  16. #
  17. #  You must modify your LIB and INCLUDE environment variables to reference
  18. #  the directory containing the OS/2 CPI-C library files.
  19. #
  20. #  For Networking Services/2 and Networking Services/DOS:
  21. #  SET LIB=C:\CMLIB\APPN\LIB;C:\NSD\LIB;%LIB%
  22. #  SET INCLUDE=C:\CMLIB\APPN\INCLUDE;C:\NSD\INCLUDE;%INCLUDE%
  23. #
  24. #  For Extended Services/2 and Networking Services/DOS:
  25. #  SET LIB=D:\CMLIB\LIB;C:\NSD\LIB;%LIB%
  26. #  SET INCLUDE=D:\CMLIB\INCLUDE;C:\NSD\INCLUDE;%INCLUDE%
  27. #
  28. #  Compiler Switches:
  29. #   -c  = Compile only, no link
  30. #   -AL = Using the Large memory model.
  31. #   -Gs = Remove stack probes - Use only on fully debugged program.
  32. #   -Ox = Maximum optimization
  33. #   -Zl = Suppress default library selection.
  34. #   -Zp = Pack structure members - OS/2 API calls expect packed structures.
  35. #   -Ze = Enable special keywords.
  36. #   -W4 = Maximum warning level
  37.  
  38.  
  39. C_OPTIONS = -c -AL -Gs -Ox -W4 -Zelp -DFAPI -DGET_OS2_SENSE_DATA
  40.  
  41. LIBLIST = doscalls cpic llibce acs  /NOD
  42. MAP = nul
  43. LINK_OPTIONS = /EXEPACK /ST:8000 /PMTYPE:vio
  44.  
  45.  
  46. aping: aping.exe apingd.exe
  47.  
  48. aping.EXE: aping.fam aping.OBJ cpicerr.OBJ cpicinit.OBJ cpicport.OBJ getopt.obj
  49.         LINK $* cpicerr.OBJ cpicinit.OBJ cpicport.OBJ getopt.obj $(LINK_OPTIONS), $*, $(MAP), $(LIBLIST) ,;
  50.         BIND $*.exe cpic.lib cpicnsdr.lib -n DOSEXITLIST APPC
  51.  
  52. aping.OBJ: aping.fam aping.C cpicerr.h cpicinit.h cpicport.h getopt.h
  53.         CL $(C_OPTIONS) $*.C
  54.  
  55. apingd.EXE: aping.fam apingd.OBJ cpicerr.OBJ cpicinit.OBJ cpicport.OBJ  getopt.obj
  56.         LINK $* cpicerr.OBJ cpicinit.OBJ cpicport.OBJ getopt.obj $(LINK_OPTIONS), $*, $(MAP), $(LIBLIST) ,;
  57.         BIND $*.exe cpic.lib cpicnsdr.lib -n DOSEXITLIST APPC
  58.  
  59. apingd.OBJ: aping.fam apingd.C cpicerr.h cpicinit.h cpicport.h getopt.h       
  60.         CL $(C_OPTIONS) $*.C
  61.  
  62. cpicerr.OBJ: aping.fam cpicerr.C cpicerr.h
  63.         CL $(C_OPTIONS) $*.C
  64.  
  65. cpicinit.OBJ: aping.fam cpicinit.C cpicinit.h
  66.         CL $(C_OPTIONS) $*.C
  67.  
  68. cpicport.OBJ: aping.fam cpicport.C cpicport.h
  69.         CL $(C_OPTIONS) $*.C
  70.  
  71. getopt.OBJ: aping.fam getopt.C getopt.h
  72.         CL $(C_OPTIONS) $*.C
  73.  
  74.